<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSelectedGoodsLogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('c_selected_goods_logs', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('goods_id')->default(0)->comment('文章ID/商品id/课程id');
            $table->integer('work_id')->default(0)->comment('工作室id');
            $table->integer('type')->default(0)->comment('支付状态1商品2课程3工艺4咨询');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('c_selected_goods_logs');
    }
}
